package com.imooc.miaosha.dao;

import com.alipay.api.domain.Data;
import com.imooc.miaosha.pojo.OrderInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.ListResourceBundle;

@Component("orderInfoMapper")
public interface OrderInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    OrderInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);
OrderInfo getOrderInfoByUserIdAndOrderId(@Param("userId")Long userId,@Param("orderId")Long orderId);
List<OrderInfo>getOrderInfoListByCreateTime(@Param("status")byte status,@Param("time") Date time);
}